<?php
/**
 * 请求版本为v1
 */
Route::group(['prefix'=>'api/v1/xiao','middleware' => ['transaction','response']], function() {
      //=============================================微信小程解密小程序用信息获取用户信息===============================
    Route::post('/user/login', ['uses' => 'UserController@userLogin']);  //微信小程序登陆
    Route::post('/user/wxvedio', ['uses' => 'UserController@wxVedio']);  //微信小程序一句话转成文字
    Route::post('/user/change/logo', ['uses' => 'UserController@userChangeLogo']);  //微信修改用户头像
    Route::post('/testwx', ['uses' => 'UserController@testWx']);  //微信修改用户头像



    Route::post('/user/lid/list', ['uses' => 'UserController@lidList']);  //获取入驻会员
    Route::post('/user/lid/class', ['uses' => 'UserController@classList']);  //获取根据分类id获取入驻会员

    Route::group(['middleware' => ['apiuser']], function() {
        Route::post('/user/withdraw/add', ['uses' => 'WithdrawController@add']);  //提现首页列表
        Route::post('/user/change/info', ['uses' => 'UserController@userChangeInfo']);  //微信用户名称
        Route::post('/user/change/login', ['uses' => 'UserController@userChangeLoginInfo']);  //微信用户名称
        Route::post('/user/change/set', ['uses' => 'UserController@userChangeSet']);  //微信用户名称
        Route::post('/user/change/lng', ['uses' => 'UserController@updateUserLngAndlat']);  //修改用户经纬度
    });


    //==========================================获取用户===========================================

    Route::group(['middleware' => ['apiuser']], function () {
        Route::post('/user/info/one', ['uses' => 'UserController@indexInfo']);  //获取会员
        Route::post('/user/info/detail', ['uses' => 'UserController@getDetail']);  //获取会员评细信息
        Route::post('/user/info/statistics', ['uses' => 'UserController@infoStatistics']);  //获取会员统计接口
    });
});

/**
 * 请求版本为v1
 */
Route::group(['prefix'=>'api/v1/xiao','middleware' => ['apiuser','response']], function() {
    //=============================================微信小程解密小程序用信息获取用户信息===============================
    Route::get('/user/test', ['uses' => 'UserController@Test']);  //微信小程序登陆
    Route::post('/user/withdraw/list', ['uses' => 'WithdrawController@getList']);  //微信提现记录日志
    Route::post('/user/balance/list', ['uses' => 'UserController@getBalanceLogList']);  //微信提现记录日志


});